package com.shenmazong.order.controller;

import com.shenmazong.order.service.TbCityService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.IdVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2022/7/6 14:32
 */

@RestController
@Slf4j
@RequestMapping(value = "/city")
public class TbCityController {

    @Autowired
    TbCityService tbCityService;

    @PostMapping(value = "/list")
    public ResultResponse list(@RequestBody IdVo idVo) {
        return tbCityService.listCities(idVo);
    }

}
